package com.isoftstone.industry.aaa.core.service.assist;

import java.util.Date;
import java.util.List;

import com.isoftstone.industry.persistance.bean.TicketInfo;
import com.isoftstone.modules.core.service.IGenericService;

public interface ITicketInfoService  extends IGenericService<TicketInfo, String>{
	List<TicketInfo> findUnchargedTicketInfoByAppInstAndChargeMode(String appInstId,String chargeMode);
	
	void markCharged(String id);
	
	void markCharged(String id, long chargeOrder);
	
	List<TicketInfo> findUnchargedTicketInfoByAppInstAndChargeModeAndCreatedTimeBetween(String appInstId,String chargeMode, Date start, Date end);
	
	long countCharged4All(String appInstId, String chargeMode);
	
	long countCharged4Between(String appInstId, String chargeMode,Date start, Date end);
	
	// 2015-04 产品包 start
	List<TicketInfo> findUnchargedTicketInfoByAppInstAndChargeMode(
			List<String> appInstIds, String chargeMode);

	List<TicketInfo> findUnchargedTicketInfoByAppInstAndChargeModeAndCreatedTimeBetween(
			List<String> appInstIds, String chargeMode, Date start, Date end);

	long countCharged4All(List<String> appInstId, String chargeMode);

	long countCharged4Between(List<String> appInstId, String chargeMode,
			Date start, Date end);
	// 2015-04 产品包 end
}
